.class Lcom/waiqin365/base/login/bg;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/baoyz/swipemenulistview/i;


# instance fields
.field final synthetic a:Lcom/waiqin365/base/login/LoginMainActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/base/login/LoginMainActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/login/bg;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/baoyz/swipemenulistview/a;I)V
    .locals 5

    const/4 v4, 0x1

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/waiqin365/base/login/bg;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    # getter for: Lcom/waiqin365/base/login/LoginMainActivity;->adapter:Lcom/waiqin365/lightapp/im/adapter/c;
    invoke-static {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->access$2500(Lcom/waiqin365/base/login/LoginMainActivity;)Lcom/waiqin365/lightapp/im/adapter/c;

    move-result-object v0

    invoke-virtual {v0, p2}, Lcom/waiqin365/lightapp/im/adapter/c;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/chat/EMConversation;

    iget-object v1, p0, Lcom/waiqin365/base/login/bg;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    iget-object v1, v1, Lcom/waiqin365/base/login/LoginMainActivity;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/utils/l;->a(Landroid/content/Context;)Lcom/waiqin365/lightapp/im/utils/l;

    move-result-object v1

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMConversation;->getUserName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/im/utils/l;->d(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-virtual {p1, v3}, Lcom/baoyz/swipemenulistview/a;->a(I)Lcom/baoyz/swipemenulistview/d;

    move-result-object v1

    sget-object v2, Lcom/waiqin365/lightapp/im/a;->d:Ljava/lang/String;

    iput-object v2, v1, Lcom/baoyz/swipemenulistview/d;->b:Ljava/lang/String;

    :goto_0
    invoke-virtual {v0}, Lcom/hyphenate/chat/EMConversation;->getUserName()Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v1, "tongzhigonggao_chatid"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-virtual {p1, v4}, Lcom/baoyz/swipemenulistview/a;->a(I)Lcom/baoyz/swipemenulistview/d;

    move-result-object v0

    iput-boolean v3, v0, Lcom/baoyz/swipemenulistview/d;->h:Z

    :goto_1
    invoke-virtual {p1, v3}, Lcom/baoyz/swipemenulistview/a;->a(I)Lcom/baoyz/swipemenulistview/d;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baoyz/swipemenulistview/d;->a()V

    return-void

    :cond_0
    invoke-virtual {p1, v3}, Lcom/baoyz/swipemenulistview/a;->a(I)Lcom/baoyz/swipemenulistview/d;

    move-result-object v1

    sget-object v2, Lcom/waiqin365/lightapp/im/a;->c:Ljava/lang/String;

    iput-object v2, v1, Lcom/baoyz/swipemenulistview/d;->b:Ljava/lang/String;

    goto :goto_0

    :cond_1
    invoke-virtual {p1, v4}, Lcom/baoyz/swipemenulistview/a;->a(I)Lcom/baoyz/swipemenulistview/d;

    move-result-object v0

    iput-boolean v4, v0, Lcom/baoyz/swipemenulistview/d;->h:Z

    goto :goto_1
.end method
